<template>
	<view class="centers">
		<view class="inv-h-ws">
			<view :class="['inv-hs',Inv==0?'inv-h-ses':'']" @click="Inv=0">
				<view class="tab-cen">
					<view>美发服务</view>
				</view>
			</view>
			<view :class="['inv-hs',Inv==1?'inv-h-ses':'']" @click="Inv=1">
				<view class="tab-cen">
					<view>美容服务</view>
				</view>
			</view>
			<view :class="['inv-hs',Inv==2?'inv-h-ses':'']" @click="Inv=2">
				<view class="tab-cen">
					<view>其他服务</view>
				</view>
			</view>
		</view>
		<view class="" v-show="Inv == 0">
			<view class="haird">
				<text>洗剪吹</text>
				<text>洗剪吹</text>
			</view>
			<view class="sing" @click="goService()">
				<view class="sing-cen">
					<view class="sing-left" style="width: 25%;">
						<image src="/static/timg.jpg" mode=""></image>
					</view>
					<view class="sing-cen-en">
						<view class="sing-cen-1">洗吹</view>
						<view class="sing-cen-2">水洗+按摩+造型</view>
						<view class="sing-cen-3">时间:预计1小时</view>
						<view class="sing-cen-4">已售:1231</view>
					</view>
					<view class="sing-right">
						<view class="sing-right-top">￥<text>88</text></view>
						<view class="sing-right-cen">预约优惠20%</view>
						<view class="sing-right-btm">在线预约</view>
					</view>
				</view>
			</view>
			<view class="sing">
				<view class="sing-cen">
					<view class="sing-left" style="width: 25%;">
						<image src="/static/timg.jpg" mode=""></image>
					</view>
					<view class="sing-cen-en">
						<view class="sing-cen-1">
							<text style="color: #2C2C2C;font-family: PingFang;font-weight: bold;">染发</text>
							<text>水纹理波浪烫</text>
						</view>
						<view class="sing-cen-2">发型设计+修剪+烫发+造型</view>
						<view class="sing-cen-3">时间:预计1小时</view>
						<view class="sing-cen-4">
							<text>产品：欧莱雅</text>
							<text>已售：1356</text>
						</view>
					</view>
					<view class="sing-right">
						<view class="sing-right-top">￥<text>88</text></view>
						<view class="sing-right-cen">预约优惠20%</view>
						<view class="sing-right-btm">在线预约</view>
					</view>
				</view>
			</view>
			<view class="select">
				<view class="service">
					<view class="service-top" @click="goEsignerd()">
						<view>服务须知</view>
						<view>
							<text style="font-size: 26rpx;">查看更多</text>
							<!-- <image src="" mode=""></image> -->
							<u-icon name="arrow-right" size="22" color="#868686"></u-icon>
						</view>
					</view>
					<view class="service-cen">
						<view class="service-data1">工作时间：10:00-21:00 周一休息</view>
						<view class="service-data2">
							<text style="width: 50%;">从业：12年</text>
							<text>职位：店长</text>
						</view>
						<view class="service-data2">
							<text style="font-size: 26rpx;width: 50%;">职称：国家高级美发师</text>
							<text style="font-size: 26rpx;">预约：提前3小时</text>
						</view>
						<view class="service-data2" style="font-size: 26rpx;">
							擅长：男士油头造型、细软烫发
						</view>
					</view>
				</view>
				<view class="service services">
					<view class="service-top">
						<view>顾客点评</view>
						<view>
							<text style="font-size: 26rpx;">123条点评</text>
							<u-icon name="arrow-right" size="22" color="#868686"></u-icon>
						</view>
					</view>
					<view class="swiper-tabs">
						<view :class="['swiper-tab-lists', Tabs==0 ? 'ons' : '']" @click="Tabs=0">技术很好123</view>
						<view :class="['swiper-tab-lists', Tabs==1 ? 'ons' : '']" @click="Tabs=1">效果满意123</view>
						<view :class="['swiper-tab-lists', Tabs==2 ? 'ons' : '']" @click="Tabs=2">效果满意123</view>
					</view>
					<view class="lists" v-show="Tabs == 0">

						<scroll-view scroll-x="true" class="scroll">
							<view class="box" v-for="(item,index) in 3" :key='index'>
								<view class="cen-box">
									<view style="width: 25%;">
										<image style="width: 110rpx;height: 150rpx;" src="/static/nan.jpg" mode=""></image>
									</view>
									<view style="width: 75%;padding: 5rpx;">
										<view style="font-size: 26rpx;line-height: 40rpx;">环境不错</view>
										<view style="font-size: 20rpx;line-height: 40rpx;">5.0</view>
										<view style="font-size: 24rpx;line-height: 40rpx;width: 300rpx;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">奥斯丁南海东海地方呢的风收到</view>
										<view style="font-size: 20rpx;line-height: 40rpx;display: flex;align-items: center;">
											<image style="width: 30rpx;height: 30rpx;border-radius: 40rpx;" src="/static/nv.jpg" mode=""></image>
											<text style="margin: 0 15rpx;">加菲猫</text>
											<text>2020/2/2</text>
										</view>
									</view>
								</view>
							</view>
						</scroll-view>
						<view class="wen">
							<view class="service-top">
								<view>问TA</view>
								<view>
									<text style="font-size: 26rpx;">123条回答</text>
									<u-icon name="arrow-right" size="22" color="#868686"></u-icon>
								</view>
							</view>
							<view class="wen-wen">
								<image src="/static/nan.jpg" mode=""></image>
								<text>只烫不染的短发多少钱？头发比较干，不知道能不能做？</text>
							</view>
							<view class="wen-wen">
								<image src="/static/nan.jpg" mode=""></image>
								<text>只烫不染的短发多少钱？</text>
							</view>
						</view>

						<view class="bom-but">
							<view class="but" @click="Cooperation()">
								设计师/商家 立即入驻，展示你的项目
							</view>
							<view style="font-size: 22rpx;color: #333;padding-top: 10rpx;">
								**提示：本页面内信息有门店/设计师发布并对信息的真实性及合法性负责，如您对信息真实性及合法性有质疑，请向**反馈
							</view>
						</view>
					</view>

				</view>

			</view>
		</view>
		<view class="" v-show="Inv == 1">
			2
		</view>

	</view>
</template>

<script>
	import {
		BrandInfor
	} from "@/api/details.js"
	export default {

		data() {
			return {
				Inv: 0,
				Tab: 0,
				Tabs: 0,
				shopId: ''
			}
		},
		created() {
			this.getData()

		},
		methods: {
			getData() {
				let data = {
					shopId: this.shopId
				};
				BrandInfor(data).then(res => {
					console.log('品牌馆', res[1].data)
				})
			},
			Cooperation() {
				uni.navigateTo({
					url: "/pages/my/personal/cooperation"
				})
			},
			goService() {
				uni.navigateTo({
					url: "/pagesA/serve_detail/serve_detail"
				})
			},
			goEsignerd() {
				uni.navigateTo({
					url: "/pagesA/esignerd/esignerd"
				})
			},
			changeTab(Inv) {
				that.navIdx = Inv;
			},
			change(Tab) {
				that.navIdx = Tab;
			},
			chang(Tabs) {
				that.navIdx = Tabs;
			},
		}
	}
</script>


<style lang="scss" scoped>
	.bom-but {
		padding: 20rpx;
		background-color: #F1F1F1;

		.but {
			width: 100%;
			line-height: 60rpx;
			text-align: center;
			color: #fff;
			background-color: #00c6c2;
			font-size: 28rpx;

		}
	}

	.wen-wen {
		padding: 20rpx;
		font-size: 24rpx;
		display: flex;
		align-items: center;


		image {
			width: 40rpx;
			height: 40rpx;
		}

		text {
			color: #323233;
		}
	}

	.lists {
		// width: 100%;

		// margin: 0rpx 20rpx;
		overflow: hidden;

		.scroll {
			padding: 0 20rpx;
			// width: 100%;
			overflow: hidden;
			white-space: nowrap;

			.box {
				display: inline-block;
				width: 485rpx;
				padding: 6rpx;
				border: 1rpx solid #F1F1F1;
				box-shadow: -4rpx 0px 7rpx 0px rgba(203, 203, 203, 0.49);
				border-radius: 4rpx;
				margin-right: 13rpx;

				.cen-box {
					width: 100%;
					display: flex;
					align-items: flex-end;
					justify-content: space-between;
				}

			}
		}
	}

	.tab-text-price {
		padding: 20rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.text {
		width: 100%;
		line-height: 70rpx;
		background-color: #00c6c2;
		text-align: center;
		color: #fff;
	}

	.swiper-tab {
		padding: 0 20rpx;
		text-align: center;
		display: flex;
		align-items: flex-end;
		justify-content: space-between;
	}

	.swiper-tab-list {
		font-size: 30rpx;
		display: block;
		padding: 15rpx 85rpx;
		color: #333;
		background-color: #fff;
	}

	.on {
		color: #fff;
		background-color: #00c6c2;
	}

	.swiper-box {
		display: block;
		height: 100%;
		width: 100%;
		// overflow: hidden;

		view {
			text-align: center;
		}
	}



	.haird {
		padding: 20rpx 0;
		background-color: #F1F1F1;

		text {
			display: inline-block;
			padding: 5rpx 10rpx;
			background-color: #fff;
			margin-left: 20rpx;
			font-size: 26rpx;
		}
	}

	.select {
		padding: 10rpx 0;
		background-color: #F1F1F1;

		.select-top {
			display: flex;
			padding: 0 20rpx;
			align-items: flex-end;
			justify-content: space-between;

			text {
				display: inline-block;
				padding: 15rpx 89rpx;
				color: #fff;
				background-color: #00c6c2;
				font-size: 24rpx;
			}
		}
	}

	.service {
		// padding: 20rpx 0 20rpx 20rpx;
		background-color: #fff;

		.service-top {
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 15rpx;
		}

		.swiper-tabs {
			padding: 20rpx 182rpx 20rpx 20rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
		}



		.swiper-tab-lists {
			font-size: 25rpx;
			display: block;
			padding: 10rpx 10rpx;
			border-radius: 50rpx;
			color: #333;
			background-color: #F1F1F1;
		}

		.ons {
			color: #fff;
			background-color: #00c6c2;
			border-radius: 50rpx;
		}

		.service-cen {
			padding: 20rpx;

			.service-data1 {
				font-size: 24rpx;
				color: #323233;
				padding: 12rpx 0;
			}

			.service-data2 {
				font-size: 24rpx;
				color: #323233;
				display: flex;
				padding: 12rpx 0;

				text {
					display: inline-block;

				}
			}
		}
	}

	.sing {

		border-bottom: 8rpx solid #F7F7F7;
		background-color: #fff;

		.sing-cen {
			padding: 20rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			border-bottom: 1rpx solid #ccc;

			.sing-left {
				width: 150rpx;
				height: 169rpx;

				image {
					width: 100%;
					height: 100%;
				}
			}

			.sing-cen-en {
				width: 50%;

				view {
					font-size: 28rpx;
					color: #333333;
				}

				.sing-cen-1 {
					font-size: 28rpx;
					font-family: PingFang;
					font-weight: bold;
					color: #2C2C2C;
					padding: 7rpx 0;

					text {
						margin-right: 15rpx;
					}
				}

				.sing-cen-2 {
					font-size: 24rpx;
					font-family: PingFang;
					font-weight: 500;
					color: #474747;
					padding: 7rpx 0;
				}

				.sing-cen-3 {
					font-size: 20rpx;
					font-family: PingFang SC;
					font-weight: 400;
					padding: 7rpx 0;
				}

				.sing-cen-4 {
					font-size: 20rpx;
					font-family: PingFang SC;
					font-weight: 400;
					padding: 7rpx 0;
				}
			}

			.sing-right {
				width: 21%;
				padding-top: 30rpx;

				.sing-right-top {
					font-size: 22rpx;
					color: #333333;
					text-align: right;

					text {
						font-size: 30rpx;
					}
				}

				.sing-right-cen {
					font-size: 22rpx;
					color: #00c6c2;
					text-align: right;
				}

				.sing-right-btm {
					padding: 5rpx 6rpx;
					color: #fff;
					background-color: #00c6c2;
					font-size: 22rpx;
					text-align: center;
					margin-left: 20rpx;
					margin-top: 10rpx;
				}
			}
		}
	}

	.inv-h-ws {
		background-color: #FFFFFF;
		display: flex;

		.tab-cen {
			padding: 20rpx;
		}
	}

	.inv-hs {
		padding: 0 20rpx;
		font-size: 30upx;
		color: #666;
	}

	.inv-h-ses {
		font-weight: bold;
		color: #00c6c2;
	}

	page {
		background-color: #F1F1F1;
	}
</style>
